<!--  -->
<template>
<div class=''></div>
</template>

<script>
import website from '@framework-core/config/website';
export default {
  // import引入的组件需要注入到对象中才能使用
  methods: {
    cas: function() {
      let toUrl = this.$route.query.toUrl ? this.$route.query.toUrl : "/info/index"
      let thirdPartyName = this.$route.query.thirdPartyName ? this.$route.query.thirdPartyName : ''
      window.location.href = website.baseUrl + '/api/cas/to-cas-login?next=' + encodeURIComponent(toUrl) + '&thirdPartyName=' + thirdPartyName
          + '&frontUrl=http://localhost:3000/toCasAuth'
    }
  },
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {
    //fetchlocalWebSetting()
    this.cas()
  }
}
</script>
<style lang='scss' scoped>
//@import url(); 引入公共css类

</style>
